package com.tomehay.termprojectmanage_server.mapper;
import org.apache.ibatis.annotations.Param;
import java.util.Collection;
import java.util.List;

import com.tomehay.termprojectmanage_server.pojo.Model.Document;

/**
* @author 79919
* @description 针对表【document】的数据库操作Mapper
* @createDate 2023-06-23 13:55:07
* @Entity generator.domain.Document
*/
public interface DocumentMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Document record);

    int insertSelective(Document record);

    Document selectByPrimaryKey(Long id);

    List<Document> selectAll();

    int updateByPrimaryKeySelective(Document record);

    int updateByPrimaryKey(Document record);

    int insertBatch(@Param("documentCollection") Collection<Document> documentCollection);

    int count();

    List<Document> listAllByGno(@Param("gno") Integer gno);

}
